(function(){BX.namespace("BX.rest");if(!!BX.rest.PlacementCarousel){return}BX.rest.PlacementCarousel=function(t){BX.rest.PlacementCarousel.superclass.constructor.apply(this,arguments);if(this.param.current){this.loaded[this.param.current]=true}};BX.extend(BX.rest.PlacementCarousel,BX.rest.Placement);BX.rest.PlacementCarousel.prototype.showApp=function(t){BX.hide(this.getAppNode(this.param.current));BX.rest.PlacementCarousel.superclass.showApp.apply(this,arguments);BX.userOptions.save("rest","placement_last",this.param.placement,t)};BX.rest.PlacementCarousel.prototype.load=function(t){BX.rest.PlacementCarousel.superclass.load.apply(this,arguments)};BX.rest.PlacementCarousel.prototype.previous=function(){var t=0;for(var e=0;e<this.param.list.length;e++){if(this.param.list[e]==this.param.current){if(e>0){t=this.param.list[e-1]}else{t=this.param.list[this.param.list.length-1]}break}}this.load(t)};BX.rest.PlacementCarousel.prototype.next=function(){var t=0;for(var e=0;e<this.param.list.length;e++){if(this.param.list[e]==this.param.current){if(e<this.param.list.length-1){t=this.param.list[e+1]}else{t=this.param.list[0]}break}}this.load(t)}})();
//# sourceMappingURL=script.map.js